package com.jiutong.meipengdai.ui.activitys;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTransaction;

import com.jiutong.meipengdai.R;
import com.jiutong.meipengdai.base.BaseActivity;
import com.jiutong.meipengdai.ui.fragments.LoanFragment2v;

/**
 * 申请贷款
 * Created by suxi on 2017/5/26.
 */

public class LoanApplyActivity extends BaseActivity {

    private LoanFragment2v loanFragment;

    @Override
    public int getLayoutResouceId() {
        return R.layout.activity_loan_apply;
    }

    @Override
    protected void initView() {
        loanFragment = new LoanFragment2v();
        loanFragment.showBackIcon(true);
        commitFragment(R.id.framelayout, loanFragment);
    }


    public void commitFragment(int layoutId, Fragment fragment) {
        FragmentTransaction transaction = getSupportFragmentManager()
                .beginTransaction();
        transaction.replace(layoutId, fragment);
        transaction.commit();
    }
}
